import { Mock } from '../base'

/** img */
Mock.mock(/\/common\/uploadImg$/, {
  code: 100000,
  message: 'success',
  result: '@img'
})

Mock.mock(/\/sysPermission\/getUserPermissionByToken$/, {
  success: true,
  code: 100000,
  message: '操作成功',
  result: {
    allAuth: [
      { action: 'app:add', describe: '创建应用', type: '1', status: '1' }
    ],
    auth: [
      { action: 'app:add', describe: '创建应用', type: '1' }
    ],
    menu: [
      { redirect: null, component: 'yingyong', route: '1', children: [{ component: 'home/app/list', route: '1', meta: { keepAlive: false, internalOrExternal: false, title: '应用列表' }, name: 'home-app-list', id: '1291276435062226945', url: '/home/app/list' }], meta: { keepAlive: false, internalOrExternal: false, icon: 'appstore', title: '应用中心' }, name: 'yingyong', id: '1291275501825392641', url: '/yingyong' },
    ]
  }
})
